package com.example.demo.service;

import com.aliyun.oss.OSSException;

import java.io.File;
import java.io.InputStream;
import java.net.URL;
import java.util.Map;

public interface OssService {

    /**
     * 上传文件，返回结果信息
     * */
    void upload(String key,File file) throws OSSException;

    /**
     * 返回文件url
     */
    URL getUrl(String key) throws OSSException;

    void upload(String key, InputStream inputStream) throws OSSException;
}
